﻿using Entity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using ProdService;
using UI.Filters;
using ViewModels.Career;
using ViewModels.Contact;
using ViewModels.JsonResult;
using ViewModels.Pwd;
using ViewModels.Shared;
using ViewModels.User;
using static Global.Const;

namespace UI.ApiControllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class ContactController : BaseController
    {
        private ContactService contactService;
        public ContactController(ContactService contactService)
        {
			this.contactService = contactService;

		}

		[HttpPost]
        [Route(nameof(_Edit))]
        public void _Edit([FromForm] ShowModel model, int id)
        {
            contactService.EditContact(id, model);
        }

        public void _ReportIssue(int contactId, string comment)
        {
            contactService.ReportIssue(contactId, comment);
        }
    }
}
